/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package centralehotel.metier.backoffice;

import centralehotel.dao.interfaces.PaysDAOLocal;
import centralehotel.dao.interfaces.VilleDAOLocal;
import centralehotel.modele.Pays;
import centralehotel.modele.Ville;
import java.util.Collection;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Mathieu
 */
@Stateless
public class RessourcesMetier implements  RessourcesMetierLocal {
    
    @EJB
    private VilleDAOLocal villeDAO;
    @EJB
    private PaysDAOLocal paysDAO;
    
     public List<Pays> getAllPays(){
        return paysDAO.findAll();
    }

    public Collection<Ville> getAllVille() {
       return villeDAO.findAll();
    }
 
}
